package com.wu.llpsw.key;


import net.minecraft.client.KeyMapping;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.client.ClientRegistry;
import org.lwjgl.glfw.GLFW;


/**
 * 注册按键
 */
@OnlyIn(Dist.CLIENT)
public class keyRegister {

    // 创建一个按键对象
    public KeyMapping zibao = new KeyMapping("自爆", GLFW.GLFW_KEY_K, "荒古部落");
    public KeyMapping mianban = new KeyMapping("面板", GLFW.GLFW_KEY_Z, "荒古部落");;
    public KeyMapping jump = new KeyMapping("大跳", GLFW.GLFW_KEY_G, "荒古部落");

    public keyRegister(){
        ClientRegistry.registerKeyBinding(zibao);
        ClientRegistry.registerKeyBinding(mianban);
        ClientRegistry.registerKeyBinding(jump);
    }
}
